package cn.xd.base.application.assembler;

import cn.xd.base.domain.bean.response.AdminMenuDTO;
import cn.xd.base.domain.entity.AdminMenu;
import cn.xd.base.persistence.dos.AdminMenuDO;
import cn.xd.core.converter.Converter;
import cn.xd.core.converter.ReferenceMapper;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper(uses = ReferenceMapper.class)
public interface AdminMenuAssembler extends Converter<AdminMenuDTO, AdminMenuDO> {
    AdminMenuAssembler INSTANCE = Mappers.getMapper(AdminMenuAssembler.class);

    AdminMenuDTO toDTO(AdminMenu adminMenu);

    List<AdminMenuDTO> toDTOs(List<AdminMenu> adminMenus);
}
